<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>会员洗车</title>
  <script type="text/javascript" src="/static/common/jquery/jquery.min.js"></script>
  <script src="/static/common/layer/layer.js"></script>
  <style>
    .maxbox{
      width: 100%;
      margin-bottom:50px;
    }

    img{
      width:100%;
     
    }
    .yuanjia{
      color: red;
    }
    .goumai {
      position: fixed;
      left: 0px;
      bottom: 0px;
      background-color: #4563fa;
      width: 100%;
      height: 40px;
      line-height: 40px;
      text-align: center;
    }
    a{
      text-decoration: none;
      color: #fff;
      font-weight: bold;
    }
    #xich p{
    	font-size: 14px;
      	height:25px;
      	line-height: 25px;
    }
     #xich p:after {
      float: left;
      width: 100%;
      height: 1px;
      content: '';
      -webkit-transform: scaleY(.5);
      transform: scaleY(.5);
      background-color: #c8c7cc;
  }
  </style>
</head>
<body>
  <div class="maxbox">
    <div>
      <img src="{$xiche.pic|getUrl}" alt="">
    </div>
    <div class="">
      <h3>{$xiche.name}</h3>
    </div>
    <div>
      <form action="" id="xich">
       	<p>
        <label for="jc">轿车：
        <input type="radio" name="xianghao" id="jc" value="hycar"> 
        会员价{$xiche.hycar}元 <span class="yuanjia"><s>原价{$xiche.car}</s></span>
        </label>
        </p>
        <p>
        <label for="suv">SUV：
        <input type="radio" name="xianghao" id="suv" value="hysuv"> 
        会员价{$xiche.hysuv}元 <span class="yuanjia"><s>原价{$xiche.suv}</s></span>
        </label>
        </p>
        <p>
        <label for="spv">SPV：
        <input type="radio" name="xianghao" id="spv" value="hyspv"> 
        会员价{$xiche.hyspv}元 <span class="yuanjia"><s>原价{$xiche.spv}</s></span>
        </label>
        </p>
      </form>
    </div>
    <div class="goumai">
      <a href="javascript:;" onclick="tijiao()" style="width: 100%;float: left;"> 立即购买 </a>
    </div>
    <script>
      function tijiao(){
        heID = $('input[name="xianghao"]:checked').val();
        if(heID){
          location.href = "/ymkj/xiche/xiche?xinghao="+heID+"&xid={$xiche.id}";
        } else {
          layer.alert('请选择型号');
        }
      }
    </script>
  </div>
</body>
</html>